<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of SaludoController
 *
 * @author Casa
 */
class addressController extends Controller{
    
    
    public function actionIndex(){
     	$model=new Business;

		// Uncomment the following line if AJAX validation is needed
		// $this->performAjaxValidation($model);

		if(isset($_POST['Business']))
		{
			$model->attributes=$_POST['Business'];
			if($model->save())
				$this->redirect(array('view','id'=>$model->id));
		}

		$this->render('index',array(
			'model'=>$model,
		));   
    }
    //put your code here
}

?>